package com.yzdg.model.auth.dtos;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class AuthUserDTO {
    //手机号
    @NotBlank
    @Length(min = 11, max = 11, message = "手机号长度应为11位")
    private String phone;
    //密码
    @NotBlank
    @Length(min = 6, max = 13, message = "密码长度应为6-13位")
    private String password;
}
